class Http:
    def __init__(self):
        from constants import config
        self.host = config.get("web", "web_host")
        self.port = int(config.get("web", "web_port"))
        self.project_url = config.get("web", "project_path")
        self.url = f"{self.host}:{self.port}/{self.project_url}"

    def GeneratorUrl(self, path):
        return f"{self.url}{path}"
